<?php
class Plugin_HeadTitle extends Zend_Controller_Plugin_Abstract {

    private $_view = null;

    public function __construct($view) {
        $this->_view = $view;
    }

    public function preDispatch(Zend_Controller_Request_Abstract $request) {
    	$module = $request->getModuleName();
        $resource = $request->getControllerName();
        $action = $request->getActionName();

         $this->_view->headTitle()->headTitle($resource. ' - ' .$action, 'APPEND');
    }
}
